package com.kaifamiao.loginmodel.service;


import com.kaifamiao.loginmodel.entity.UserInfo;
import com.kaifamiao.loginmodel.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoService {
    @Autowired
    private UserInfoMapper userMapper;
    public List<UserInfo> getAllUser() {
        return userMapper.findAll();
    }

    public UserInfo getUserByName(String username) {
        return userMapper.getUserByName(username);
    }
}
